package com.jdym.service.impl;

import com.jdym.entity.Loan;
import com.jdym.entity.vo.loanInfo;
import com.jdym.mapper.LoanMapper;
import com.jdym.service.LoanService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 贷款表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
@Service
public class LoanServiceImpl extends ServiceImpl<LoanMapper, Loan> implements LoanService {
    @Autowired
    LoanMapper loanMapper;

    @Override
    public List<loanInfo> getLoanInfo(int firmId) {
      return  loanMapper.getLoanInfo(firmId);
    }

    @Override
    public List<loanInfo> selectLoanStatusis2(int firmId) {

        return loanMapper.selectLoanStatusis2(firmId);
    }
}
